{{ content.childrenAfterFirstTitle if content.extract('footnote').count > 0 }}
    {{ for footnote in content.extract('footnote') "\n" }}
  1. {{ footnote.attributes.text.trim.indentNewlines(2, '\t') if footnote.attributes.text.children.last.definitionIdentifier != '__paragraph__' }}

    {{ end if footnote.attributes.text.children.count > 1 "\n\t" end }}
  2. {{ end "\n" }}
{{ end }}